//
//  QSCardCycleView.h
//  MyTest
//
//  Created by Song on 2017/9/12.
//  Copyright © 2017年 Song. All rights reserved.
//

#import <UIKit/UIKit.h>

@class QSCardCycleModel, QSCardCycleView;

@protocol QSCardCycleViewDelegate <NSObject>

@optional
/**
 *  选中item
 */
- (void)cardCycleView:(QSCardCycleView *)cardCycleView didSelectedImageItemAtIndex:(NSInteger)index;

@end

@interface QSCardCycleView : UIView

/** item的大小 */
@property (nonatomic) CGSize itemSize;
/** 滚动的方向 */
@property (nonatomic) UICollectionViewScrollDirection scrollDirection;
/** 可视区间中显示的最多item个数 */
@property (nonatomic) NSInteger visibleCount;
/** 占位图片 */
@property (nonatomic, strong) NSString *placeHolderImg;
/** 图片数组 */
@property (nonatomic, strong) NSArray *imageArr;
/** 图片圆角角度 */
@property (nonatomic, assign) CGFloat cornerAngle;
/** 是否是卡片样式 默认 NO */
@property (nonatomic, assign) BOOL isCardStytle;
/** 只是水平方向缩放 */
@property (nonatomic, assign) BOOL isOnlyHorizontalScale;

/** 只显示文字轮播 */
@property (nonatomic, assign) BOOL isOnlyDisplayText;
/** 文字数组 */
@property (nonatomic, strong) NSArray *textArr;


/** 设置相关的数据模型 */
@property (nonatomic, strong) QSCardCycleModel *cardCycleModel;

/** 代理 */
@property (nonatomic, weak) id<QSCardCycleViewDelegate> delegate;

@end
